package com.xxl.job.executor.service.jobhandler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import static com.xxl.job.core.biz.model.ReturnT.SUCCESS;

/**
 * @author fueen
 * 编写自己的定时任务Handler
 * 继承IJobHandler
 *
 */

@Component
public class MyJobHandler extends IJobHandler {
    /**
     * execute handler, invoked when executor receives a scheduling request
     *
     * @throws Exception
     */
    @XxlJob(value = "MyJobHandler")
    @Override
    public void execute() throws Exception {
        System.out.println("我们不能失去信仰");
    }
}

